const seq = require('sequelize');
const db = require('../config/database');
const Model = db.defineModel('xs_bookrack', {
	userid: { type: seq.STRING(20), allowNull: true, comment: '用户ID', unique: true },
	bookid: { type: seq.STRING(50), comment: '小说ID', unique: true },
	currchapter: { type: seq.STRING(50), allowNull: true, comment: '阅读章节' },
	createtime: { type: seq.BIGINT(13), comment: '创建时间' },
	updatetime: { type: seq.BIGINT(13), comment: '阅读时间' }
});
module.exports = Model;